//
//  SCRefreshTableViewController.m
//  Mutal
//
//  Created by TonyStart on 16/10/25.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCRefreshTableViewController.h"

@interface SCRefreshTableViewController ()
@property(nonatomic,strong)UIView *myloadView;//加载更多视图
@property(nonatomic,strong)UILabel *loadMorelabel;//
@end

@implementation SCRefreshTableViewController
-(instancetype)init{
    if (self = [super init]) {
        _page = 1;
        _isloadMore = YES;
        _refReshLoadType = dropLoad;
    }
    return self;
}
-(SCRefreshControl *)refReshC{
    if (!_refReshC) {
        
        _refReshC = [[SCRefreshControl alloc] init];
    }
    return _refReshC;
}
- (void)viewDidLoad {
    [super viewDidLoad];
   
        [self.tableView addSubview:self.refReshC ];
        
//        [self.refReshC addTarget:self action:@selector(loadData) forControlEvents:UIControlEventValueChanged];
    
    
   
    
}
-(void)loadData{
    
//    [self.refReshC beginRefreshing:^(BOOL is_drop) {
//        
//    }];
//    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.refReshC endRefreshing];
    });
}









@end
